package com.fis.hlo.pm.client;

import java.net.URL;

import javax.xml.namespace.QName;

import com.fis.hlo.pm.objinvitem.PMObjInvItemTransferer;
import com.fis.hlo.pm.objinvitem.PMObjInvItemTransfererService;
import com.fis.mca.config.Config;
import com.fis.mca.config.ConfigConstant;

public class ObjInvItemTransfererClient {
	private static final QName SERVICE_NAME =new QName("http://objinvitem.pm.hlo.fis.com/", "PMObjInvItemTransfererService");
	private static final String WSDL_URL = Config
			.getURL(ConfigConstant.PM_OBJ_INV_ITEM_PORT_KEY);

	public static PMObjInvItemTransferer getService() throws Exception{
		URL url = new URL(WSDL_URL);
		PMObjInvItemTransfererService ss = new PMObjInvItemTransfererService(url, SERVICE_NAME);
		PMObjInvItemTransferer port = ss.getPMObjInvItemTransfererPort();
		return port;
	}
}
